package com.gjy.pd.builder;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2022-12-15 14:14:15
 */
public class ProBuilder {

    private final Pro pro;

    private ProBuilder() {
        this.pro = new Pro();
    }

    public static ProBuilder builder() {
        return new ProBuilder();
    }

    public ProBuilder setId(Integer id) {
        this.pro.setId(id);
        return this;
    }

    public ProBuilder setName(String name) {
        this.pro.setName(name);
        return this;
    }

    public ProBuilder setAge(Integer age) {
        this.pro.setAge(age);
        return this;
    }

    public Pro build() {
        return pro;
    }
}
